home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / fgl110c.zip / 14-01.C < prev    next >
Text File  |  1992-01-31  |  327b  |  21 lines

  1. #include <fastgraf.h>
  2. #include <stdio.h>
  3.  
  4. void main(void);
  5.  
  6. void main()
  7. {
  8.    unsigned int seconds;
  9.    unsigned char key, aux;
  10.  
  11.    seconds = 0;
  12.  
  13.    do {
  14.       fg_waitfor(91);
  15.       seconds += 5;
  16.       printf("%u seconds have elapsed.\n",seconds);
  17.       fg_intkey(&key,&aux);
  18.    }
  19.    while (key+aux == 0);
  20. }
  21.